package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	TaxTypeEventNew           = "erp.TaxTypeNew"
	TaxTypeEventBeforeCreate  = "erp.TaxTypeBeforeCreate"
	TaxTypeEventBeforeUpdate  = "erp.TaxTypeBeforeUpdate"
	TaxTypeEventBeforeSave    = "erp.TaxTypeBeforeCreate erp.TaxTypeBeforeUpdate"
	TaxTypeEventAfterCreate   = "erp.TaxTypeAfterCreate"
	TaxTypeEventAfterUpdate   = "erp.TaxTypeAfterUpdate"
	TaxTypeEventAfterSave     = "erp.TaxTypeAfterCreate erp.TaxTypeAfterUpdate"
	TaxTypeEventDelete        = "erp.TaxTypeDelete"
	TaxTypeAccessControlEvent = "erp.TaxTypeAccessControl"
)

func GetTaxTypeConfig() *mgo.DocConfig {
	return TaxType_Config
}

var TaxType_Config *mgo.DocConfig

func init() {
	TaxType_Config = NewTaxTypeConfig()
}
func NewTaxTypeConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "erp.TaxType",
		Fields: []string{
			"name",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
